import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const wailian: AppRouteRecordRaw = {
  path: '/wailian',
  name: 'wailian',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '外链管理',
    requiresAuth: true,
    icon: 'icon-branch',
    order: 8,
  },
  children: [
    {
      path: 'wailianList',
      name: 'wailianList',
      component: () => import('@/views/wailian/wailian.vue'),
      meta: {
        locale: '外链列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'addWailian',
      name: 'addWailian',
      component: () => import('@/views/wailian/addWailian.vue'),
      meta: {
        locale: '添加外链',
        requiresAuth: true,
        roles: ['*'],
      },
    }
  ],
};

export default wailian;
